<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://java.sun.com/jsf/composite"
	>

<ui:composition template="/WEB-INF/homePageTemplate/homeTemplate.xhtml">
	<ui:define name="homeContent">
	
	<br/><br/>
	<center> <h1>Socijalna mreza RAF </h1> </center>
		<h:form>
			<h:panelGrid columns="2">
				<h:outputText value="Filter: "> </h:outputText>
				<h:inputText value="#{searchBean.filter}" id="filter"></h:inputText>
			</h:panelGrid>
			<h:commandButton value="Search" action="#{searchBean.searchUser}" type="submit" id="searchBtn">
				<f:param name="type" value="search"> </f:param>
			</h:commandButton>
			
		</h:form>
		
		
		<h:panelGroup layout="block" rendered="#{param['type']=='search'}">
			
			<div class="ggg">
			    <ui:insert name="ggg">
			    	<ui:include src="/UserSearch.xhtml"/>
			    </ui:insert>
			</div>
 		</h:panelGroup>
	</ui:define>

</ui:composition>
</html>